
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/socket.h>
#include <errno.h>
#include <string.h>
#include <log.h>
#include <helper_unit.h>
#include <net.h>
#include <memcheck.h>
#include <http_decoder.h>
#include <stat_manager.h>
#include <extend_http.h>
#include <http_decoder.h>
#include <compress.h>
#include<unistd.h>
#include<stdlib.h>
#include<sys/types.h>
#include<sys/stat.h>
#include<fcntl.h>
#include "status_log.h"
#include "global.h"
HTTP_SVR_NS_BEGIN
int write_status_log(char* log){

		int fd=open(TGlobal::_FIFO_path.c_str(),O_RDWR|O_NONBLOCK,0);          

		if(fd==-1){
				log_error("open named pipe %s error",TGlobal::_FIFO_path.c_str());
		}

		if((write(fd,log,strlen(log)))==-1&&errno==EAGAIN){
				printf("write to named pipe error");

		}
}
HTTP_SVR_NS_END
